package com.ruoyi.project.mgcmanage.service.impl;

import com.ruoyi.project.mgcmanage.domain.Storage;
import com.ruoyi.project.mgcmanage.mapper.StorageMapper;
import com.ruoyi.project.mgcmanage.service.IStorageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StorageServiceImpl implements IStorageService {
    @Autowired
    private StorageMapper storageMapper;

    @Override
    public int addStorage(Storage storage) {
        return storageMapper.insert(storage);
    }

    @Override
    public List<Storage> listSelect() {
        return storageMapper.selectAll();
    }


}
